/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-08-30
 * Time: 22:32
 */
public class Test {
    static int count=0;
    public static void main(String[] args) {
        Runnable run=new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100; i++) {
                    count++;
                }
                System.out.println(count);
            }
        };
        Runnable run1=new Runnable() {
            @Override
            public void run() {
                System.out.println("这是一个任务");
            }
        };


        MyThreadPool pool=new MyThreadPool();
        for (int i = 0; i < 10; i++) {
            pool.submit(run1);
        }
    }
}
